import { axios } from "../../utils/request";

const api = {
    pageList: "/user/bank/pageList",
    save: "/user/bank/save",
    deleteBank: "/user/bank/delete",
};

/**
 * 获取列表
 */
export function pageList(data) {
   return axios({
     url: api.pageList,
     method: "get",
     params: data
   });
}

/**
 * 保存
 */
export function saveBank(data) {
  return axios({
    url: api.save,
    method: "post",
    data: data
  });
}


/**
 * 删除
 */
export function deleteBank(data) {
  return axios({
    url: api.deleteBank,
    method: "post",
    data: data
  });
}
